<?php
//debug($prpData);

if($prp_data){
?>
 <div>
    <button type="button" class="save" id="apply-bill-btn">&nbsp;Apply</button>
    <button type="button" class="save" id="remove-bill-btn">&nbsp;Unapply</button>
 </div> 
 <div id="" class="list-table" style="border: 1px solid #B2B2B2; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;">
      <div class="apply-prompt" ></div>
      <table width="100%">
        <thead style="background-color: #1C1C1C; font-size: 12px; font-family: Verdana,Arial,sans-serif; color: white;">
            <th width="5%"><input type="checkbox" id="apply_checker" /></th>
            <th width="25%">Registration Id</th>
            <th width="30%"> Property Name</th>
            <th width="25%">Owner</th>
            <th width="15%">Bill Status</th>
        </thead>
      </table>
      <div  style="height: 400px; overflow: auto; margin-top: 10px;">
          <table id="applybill-table-data" class="list-table-data" width="100%" border="0">
             <tbody>
              <?php 
                    foreach($prp_data as $prp){
                      
                     ?>
                        <tr>
                            <td width="5%" align="center">
                                <input type="checkbox"  value="<?php echo $prp['PropertyItem']['id'] ;?>"/>
                            </td>
                            <td width="25%" align="center">
                                <?php echo $prp['PropertyItem']['property_reg_no']; ?>
                            </td>
                            <td width="30%" align="center">
                                <?php echo $prp['PropertyItem']['name']; ?>
                            </td>
                            <td width="25%"align="center">
                                <?php echo $prp['PropertyItem']['owners_name']; ?>
                            </td>
                            <td width="15%"align="center">
                                <?php
                                    echo ($prp['BillProperty']) ? 'Applied' : 'Not Applied';
                                ?>
                            </td> 
                        </tr>
                     <?php 
                   }
              ?>
            </tbody> 
          </table>
      </div>
 </div>
<?php    
}
else{
    echo "No Data At the Moment.";
}

?>